package mce.system.util;

import java.util.Comparator;

import mce.system.configuration.definition.MceMenu;

public class StringUtil {
	public static Comparator<MceMenu> alphabeticalOrder = new Comparator<MceMenu>() {
		
		@Override
		public int compare(MceMenu o1, MceMenu o2) {
			int res = String.CASE_INSENSITIVE_ORDER.compare(o1.get_GROUP_NAME(), o2.get_GROUP_NAME());
			if(res==0)
				res = o1.get_GROUP_NAME().compareTo(o2.get_GROUP_NAME());
			return res;
		}
	};
}
